/*
 * by txdnet.cn tonydon
 * v1.0
 */
package cn.txdnet.txcms.domain;

import cn.txdnet.txweb.annotation.validation.Validator;

/**
 *
 * @author txdnet
 */
public class Manager extends BaseEntity {

    private static final long serialVersionUID = -1075792456395724733L;
    private Integer mgrid;
    private String mgrname;
    private String mgrkey;
    private Integer roleid;
    private String rolelevel;
    private String cids;

    public Manager() {
    }

    public Integer getMgrid() {
        return mgrid;
    }

    public void setMgrid(Integer mgrid) {
        this.mgrid = mgrid;
    }

    public String getMgrname() {
        return mgrname;
    }

    public void setMgrname(String mgrname) {
        this.mgrname = mgrname;
    }

    public String getMgrkey() {
        return mgrkey;
    }

    public void setMgrkey(String mgrkey) {
        this.mgrkey = mgrkey;
    }

    public Integer getRoleid() {
        return roleid;
    }

    public void setRoleid(Integer roleid) {
        this.roleid = roleid;
    }

    public String getRolelevel() {
        return rolelevel;
    }

    public void setRolelevel(String rolelevel) {
        this.rolelevel = rolelevel;
    }

    public String getCids() {
        return cids;
    }

    public void setCids(String cids) {
        this.cids = cids;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (mgrid != null ? mgrid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Manager)) {
            return false;
        }
        Manager other = (Manager) object;
        if ((this.mgrid == null && other.mgrid != null) || (this.mgrid != null && !this.mgrid.equals(other.mgrid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "cn.txdnet.txcms.domain.Manager[mgrid=" + mgrid + "]";
    }

    @Override
    public boolean validate() {
        return Validator.validate(this);
    }
}
